<?php $name = system_controller_front::getInstance()->getRequest()->getActionName(); ?>
<div class="body tabs">
	<form action="<?php echo $this->url('picture/photo/list');?>" method="get">
	<ul class="list">
		<li<?php if($name=='list') echo ' class="current"'; ?>><a href="<?php echo $this->url('picture/photo/list');?>"><?php echo $this->language('ALL PHOTO LIST');?><?php if($name=='list') echo ' »'; ?></a></li>
		<?php if($this->row && $this->row->getId()) { ?>
		<li<?php if($name=='edit') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('picture/photo/edit', array('id' => $this->row->getId()));?>"><?php echo $this->language('EDIT PHOTO');?><?php if($name=='edit') echo ' »'; ?></a>
		</li>
		<?php } ?>
		<?php if(!$this->row || !$this->row->getId()) { ?>
		<li<?php if($name=='addnew') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('picture/photo/addnew');?>"><?php echo $this->language('CREATE A NEW PHOTO');?><?php if($name=='addnew') echo ' »'; ?></a>
		</li>
		<?php } ?>
		<?php if($name=='list') { ?>
		<li>
			<a href="<?php echo $this->url('picture/photo/batch');?>" class="batch"><?php echo $this->language('UPLOAD IN BATCHES');?></a>
		</li>
		<?php } ?>
		<li class="rs">
			<span><?php echo $this->render('include/searchInput.phtml');?></span>
			<span><button type="submit" value="Search" class="small">Search</button></span>
		</li>
	</ul>
	<div class="clearfix"></div>
	</form>
</div>
